package com.study8.demo8.exceptionHandler;

import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

/**
 * @ClassName GlobalExceptionHandler
 * @Description: TODO
 * @Date: 2022/3/30 13:16
 * @Version 1.0
 */
@RestControllerAdvice
public class GlobalExceptionHandler {

  @ExceptionHandler(Exception.class)
  public String FileMax(Exception ex) {

    return "全局异常处理：文件大大了！！" + ex.toString();
  }
}
